package message;

import socket.ChessClient;

public class ServerMovePiecesMessage extends BaseMessage {
    private boolean backChess;
    private int[][] nowTable;
    private int x;
    private int y;

    public ServerMovePiecesMessage(int[][] nowTable, boolean backChess, int x, int y) {
        this.x = x;
        this.y = y;
        this.nowTable = nowTable;
        this.backChess = backChess;
    }

    @Override
    public void sendToServer() {

    }

    @Override
    public void selfExecute() {
        ChessClient.getInstance().getRoom().getChessBoard().downChessForOnline(nowTable, backChess, x, y);
    }
}
